package com.linkoog.devtools.json.toolwindow;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.linkoog.devtools.json.toolwindow.dialog.JsonAddDialog;
import org.jetbrains.annotations.NotNull;

public class ShowJsonAddDailogAction extends AnAction {

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        Project project = e.getProject();
        if (project == null) return;

        JsonAddDialog jsonAddDialog = new JsonAddDialog(project);
        jsonAddDialog.show();
    }

    @Override
    public boolean isDumbAware() {
        return true;
    }
}
